import type {RouteRecordRaw} from 'vue-router';

export default <RouteRecordRaw[]>[
    {
        path: '',
        name:'adminIndex',
        component: () => import('@/views/admin/index.vue'),
        meta: {title: '基础信息'}
    },
    {
        path: 'enterprises',
        name:'Enterprises',
        component: () => import('@/views/admin/enterprises.vue'),
        meta: {title: '企业列表'}
    },
    {
        path: 'members',
        name:'Members',
        component: () => import('@/views/admin/members.vue'),
        meta: {title: '成员列表'}
    },
    //添加 roles permission路由并指向
    {
        path: 'roles',
        name:'Roles',
        component: () => import('@/views/admin/roles.vue'),
        meta: {title: '角色列表'}
    },
    {
        path: 'dictionary',
        name:'Dictionary',
        component: () => import('@/layouts/plain.vue'),
        meta: {title: '数据字典'},
        children: [
            {
                path: '',
                name:'DictionaryIndex',
                component: () => import('@/views/admin/dictionary/index.vue'),
                meta: {title: '数据字典列表'}
            },
            {
                path: 'datasource',
                name:'DictionaryDatasource',
                component: () => import('@/views/admin/dictionary/datasource.vue'),
                meta: {title: '数据管理'}
            },
        ]
    },
    {
        path: 'permission',
        name:'Permission',
        component: () => import('@/views/admin/permission.vue'),
        meta: {title: '权限列表'}
    },
    {
        path: 'parameter/category',
        name:'Category',
        component: () => import('@/views/admin/parameter/category.vue'),
        meta: {title: '参数分类'}
    },
]